<%--
  Created by IntelliJ IDEA.
  User: zero
  Date: 2021/9/28
  Time: 18:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<table border="1">
    <tr>
        <th width="100px;">序号</th>
        <th width="100px;">姓名</th>
        <th width="100px;">性别</th>
        <th width="100px;">年龄</th>
        <th width="100px;">手机号</th>
        <th width="100px;">邮箱</th>
        <th width="100px;">操作</th>
    </tr>
    <c:if test="${list != null }">
        <c:forEach items="${list}" var="c">
            <tr align="center">
                <td>${c.id}</td>
                <td>${c.name}</td>
                <td>${c.gender}</td>
                <td>${c.age}</td>
                <td>${c.phone}</td>
                <td>${c.email}</td>
                <td><a href="updateServlet.java?id=${c.id}">修改</a>
                    <a href="deleteServlet?id=${c.id}">删除</a></td>
            </tr>
        </c:forEach>
    </c:if>
</table>
<br/>
<a href="index.jsp">返回继续添加</a>
</body>
</html>
